﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace YiHaoHospitalPlatformDemo
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        #region 窗体基本控制
        /// <summary>
        /// 鼠标左键按下拖动窗口
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">路由事件</param>
        private void Title_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }
        /// <summary>
        /// 最小化
        /// </summary>
        /// <param name="sender">消息发送者</param>
        /// <param name="e">路由事件</param>
        private void min_button_Click(object sender, RoutedEventArgs e)
        {
            this.WindowState = WindowState.Minimized;
        }

        /// <summary>
        /// 关闭
        /// </summary>
        /// <param name="sender">消息发送者</param>
        /// <param name="e">路由事件</param>
        private void close_button_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }
        #endregion

        private void patient_button_Click(object sender, RoutedEventArgs e)
        {
            PatientWindow window = new PatientWindow();
            window.Show();
        }

        private void department_button_Click(object sender, RoutedEventArgs e)
        {
            DepartmentWindow window = new DepartmentWindow();
            window.Show();
        }

        private void laboratory_button_Click(object sender, RoutedEventArgs e)
        {
            LaboratoryWindow window = new LaboratoryWindow();
            window.Show();
        }

        private void inspect_button_Click(object sender, RoutedEventArgs e)
        {
            InspectWindow window = new InspectWindow();
            window.Show();
        }
    }
}
